﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class MoralityEvalList
	{
		public MoralityEvalList()
		{
			m_RID = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region HistoryID
		
		private int? m_HistoryID;
		
		public int? HistoryID
		{
			get { return m_HistoryID; }
			set { m_HistoryID = value; }
		}
		
		#endregion
		
		#region StartTime
		
		private DateTime? m_StartTime;
		
		public DateTime? StartTime
		{
			get { return m_StartTime; }
			set { m_StartTime = value; }
		}
		
		#endregion
		
		#region Attribute
		
		private int? m_Attribute;
		
		public int? Attribute
		{
			get { return m_Attribute; }
			set { m_Attribute = value; }
		}
		
		#endregion
		

		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			MoralityEvalList castObj = (MoralityEvalList) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 17;
			hash = hash * 17
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}